package threadTest;

public class Thread1 implements Runnable {
    @Override
    public void run() {
        while (TestMain.num <100){
            TestMain.add();
        }
    }

    public static void main(String[] args) {
        Thread1 thread1 = new Thread1();
        Thread t1 = new Thread(thread1);
        Thread t2 = new Thread(thread1);
        t1.start();
        t2.start();
    }
}
